<!--
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/
-->
{A('public/tools')}
<script type="text/javascript">
	// window.UEDITOR_HOME_URL = "{ROOT_URL}/Public/ueditor/";
	window.onload = function(){
		window.UEDITOR_CONFIG.initialFrameWidth = 880,
		window.UEDITOR_CONFIG.initialFrameHeight = 450;
		UE.getEditor('mark');
	}
</script>
<script type="text/javascript" src="{ROOT_URL}{C('edit')}ueditor.config.js"></script>
<script type="text/javascript" src="{ROOT_URL}{C('edit')}ueditor.all.min.js"></script>
<div class="main-wrap">
	<div class="crumb-wrap">
		<div class="crumb-list">
			<i class="icon-font"></i><a href="{U('root/index/index')}">首页</a><span class="crumb-step"> > </span><a class="crumb-name" href="{U('index')}">日志管理</a><span class="crumb-step"> > </span><span>新增日志</span></div>
		</div>
		<div class="result-wrap">
			<div class="result-content">
				<form action="{U('check')}" method="post">
					<table class="insert-tab" >
						<tbody>
							<tr>
								<th width="120"><i class="require-red">*</i>分类：</th>
								<td>
									<select name="listid" class="required">
										<option value="">请选择</option>
										{foreach $list $k $v}
										<option value="{$k}" {if $k==$file['listid']}selected="selected"{/if}>{$v}</option>
										{/foreach}
									</select>
									评论：<select name="ispl" class="required">
									<option value="1" {if $file['ispl']}selected="selected"{/if}>允许</option>
									<option value="0" {if !$file['ispl']}selected="selected"{/if}>禁用</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>
								<i class="require-red">*</i>标题：
							</th>
							<td>
								<input class="common-text required" name="title" size="50" value="{$file['title']}" type="text" placeholder="在此输入标题">
							</td>
						</tr>
						<tr>
							<th>标签：</th>
							<td>
								<input class="common-text required" name="tags" size="50" value="{implode('，', $file['tags'])}" type="text" placeholder="在此输入标签，(全角)多个标签之间用逗号分隔">
							</td>
						</tr>
						<tr>
							<th width="120"><i class="require-red">*</i>内容：</th>
							<td>
								<textarea id="mark" name="content">{$file['content']}</textarea>
							</td>
						</tr>
						<tr>
							<th></th>
							<td>
								<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
								<input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
							</td>
						</tr>
					</tbody>
				</table>
				<input type="hidden" name="id" value="{$file['id']}"/>
				<input type="hidden" name="date" value="{$file['date']}"/>
				<input type="hidden" name="time" value="{$file['time']}"/>
			</form>
		</div>
	</div>
</div>
<!--/main-->
</div>
</body>
</html>